//
//  RevDataGetInviteIncomeList.m
//  Nectar
//
//  Created by famer on 2023/11/11.
//  Copyright © 2023 asance. All rights reserved.
//

#import "RevDataGetInviteIncomeList.h"

@implementation RevDataGetInviteIncomeList


- (void)calculaeCellHeight{
    CGFloat width = kScreenWidth;
    CGFloat leftMargin = 12;
    CGFloat bgWidth = width-leftMargin*2;
    CGFloat rowWidth = bgWidth-leftMargin*2;
    
    CGFloat totalCellHeight = leftMargin;
    
    ///
    totalCellHeight+=12;
    CGSize dateLabelSize = [self.time textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont systemFontOfSize:12]];
    totalCellHeight+=dateLabelSize.height;
    
    ///
    totalCellHeight+=10;
    CGSize earnAmountValueLabelSize = [self.email textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont boldSystemFontOfSize:14]];
    totalCellHeight+=earnAmountValueLabelSize.height;
    
    ///
    totalCellHeight+=10;
    CGSize transferInAmountValueLabelSize = [self.income textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont boldSystemFontOfSize:12]];
    totalCellHeight+=transferInAmountValueLabelSize.height;
    
    ///
    totalCellHeight+=10;
    CGSize earnRatioValueLabelSize = [self.rate textBoundingSizeWithMaxSize:CGSizeMake(rowWidth, 500) font:[UIFont boldSystemFontOfSize:12]];
    totalCellHeight+=earnRatioValueLabelSize.height;
    
    ///
    totalCellHeight+=12;
    
    _cellHeight = totalCellHeight;

}

@end
